package com.factory.iamp.service;

import com.factory.iamp.pojo.Role;
import com.factory.iamp.pojo.RoleBuild;
import com.factory.iamp.utils.helper.PageHelper;

import java.util.List;

public interface RoleService {
    int Count();

    List<Role> ListPaged(PageHelper data);

    Role findById(int rid);

    Boolean findByIdName(int rid, String name);

    Role addRole(Role role) throws Throwable;

    void buildRoleUser(RoleBuild roleBuild);

    void deleteRole(int rid);
}
